package com.linkhub.oms.dao.mpservice;

import com.baomidou.mybatisplus.extension.service.IService;
import com.linkhub.oms.entity.LogisticFreightTemplateEntity;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 物流运费模板表 服务类
 * </p>
 *
 * @author Frank
 * @since 2024-06-23
 */
public interface ILogisticFreightTemplateService extends IService<LogisticFreightTemplateEntity> {

    /**
     * 根据模板名称查询
     *
     * @param templateNames templateNames
     * @return List<LogisticFreightTemplateEntity>
     */
    List<LogisticFreightTemplateEntity> listByTemplateNames(List<String> templateNames);

    /**
     * 根据渠道和国家查询
     *
     * @param channelCode channelCode
     * @param countryCode countryCode
     * @return List<LogisticFreightTemplateEntity>
     */
    List<LogisticFreightTemplateEntity> listByChanelAndCountry(String channelCode, String countryCode);

    /**
     * 根据渠道和国家查询
     *
     * @param channelCode channelCode
     * @param countryCode countryCode
     * @param validDate 模板有效日期
     * @return List<LogisticFreightTemplateEntity>
     */
    List<LogisticFreightTemplateEntity> listByChanelAndCountryAndDate(String channelCode, String countryCode, LocalDateTime validDate);

    /**
     * 根据渠道查询
     * @param channelCodes channelCodes
     * @return List<LogisticFreightTemplateEntity>
     */
    List<LogisticFreightTemplateEntity> listByChanelCodes(List<String> channelCodes);
}
